package org.jeecg.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 作用域授权
 * @Author: jeecg-boot
 * @Date:   2019-10-05
 * @Version: V1.0
 */
@Data
@TableName("sys_scope_depart")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_scope_depart对象", description="作用域授权")
public class SysScopeDepart {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**tenantId*/
	@Excel(name = "tenantId", width = 15)
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**scopeId*/
	@Excel(name = "scopeId", width = 15)
    @ApiModelProperty(value = "scopeId")
	private String scopeId;
	/**departId*/
	@Excel(name = "departId", width = 15)
    @ApiModelProperty(value = "departId")
	private String departId;

	/**选中状态：1 半选中:0  说明：半选中时在拉取机构结构树时作为拉取的数据，但是在作用域配置里不作为选中的数据*/
	private Integer halfStatus;

	public SysScopeDepart(){
	}

	public SysScopeDepart(String scopeId, String departId,int halfStatus) {
		this.scopeId = scopeId;
		this.departId = departId;
		this.halfStatus = halfStatus;
	}

	public SysScopeDepart(String tenantId,String scopeId, String departId,int halfStatus) {
		this.id = String.valueOf(IdWorker.getId());
		this.tenantId = tenantId;
		this.scopeId = scopeId;
		this.departId = departId;
		this.halfStatus = halfStatus;
	}
}
